<template>
  <div>
    {{ msg }}
  </div>
</template>
<script setup>
  const msg = ref('请求封装');
import api from '@/api/fetchapi';
console.log(api)
  onMounted(async ()=>{  
    const res = await api.getList({page:1});
    console.log(res.data);
  })
</script>
<style scoped lang="scss">
</style>
